#ifndef SUBSCRIBE_H
#define SUBSCRIBE_H
#include <bits/stdc++.h>
#include <winsock2.h>
#include <mysql.h>

class Subscribe
{
    public:
        Subscribe();
        int set_course_date(char *tdatatime);
        int set_user_id(MYSQL *con, char* user_name);
        int add_to_mysql(MYSQL *con);
        int delete_from_mysql(MYSQL *con);
        int print_success_info(MYSQL *con,char *user_name);
        virtual ~Subscribe();
    protected:
    private:
        int m_user_idx;
        char m_datetime[100];
};

#endif // SUBSCRIBE_H
